Repository navigation
feat(web): support optional custom color palettes - #107
Merged
dcolinmorgan merged 1 commit intoOct 30, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Closes #106.
Users may have a familiar color palette in their editor or terminal and prefer a similar reading experience in the web client. This proposes an opt-in way to bring those colors to the interface and Conversation History, while leaving the existing Auto / Light / Dark defaults unchanged.
Changes
lightordarkcolor scheme and exactly ten allowlisted semantic#RRGGBBcolors. Limit input to 4096 characters and validate the specified text/accent contrast pairs at 4.5:1 before applying.This is limited to the web interface and Conversation History. It does not change live-terminal ANSI/truecolor output, accept arbitrary CSS or remote theme URLs, or add theme dependencies or a preset catalog. The example palettes below are user configurations, not new built-in themes.
Visual examples
Browser-rendered previews using synthetic English fixtures, not original phone screenshots. The history comparisons use identical content and layout in a 390 × 844 CSS-pixel viewport. No private conversations, endpoints, or device metadata are included.
Settings: Custom palette editor
Verification
sh tests/run.sh: 23 passed, 0 failed, including 303 real-browser web tests with no browser-test skips.node --checkfor everyweb/js/*.js,sh -n tests/run.sh, andgit diff --checkpassed.swiftc.Feedback on the scope or palette format would be very welcome; I am happy to adjust this to fit the project's preferred approach.